package com.homework.action;

import java.sql.SQLException;

import com.homework.bean.CourseBean;
import com.homework.service.CourseService;

public class ClassRecoveryAction {

	private CourseService courseService;
	private int courseId;
	private int userId;

	public ClassRecoveryAction() {
		courseService = new CourseService();
	}

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	// 班级恢复_老师删除的班级
	public String classRecovery_teacher() throws NumberFormatException, SQLException {
		// courseBean
		CourseBean courseBean = new CourseBean();
		courseBean.setCourseId(String.valueOf(this.getCourseId()));

		courseService.classRecovery_teacher(courseBean);
		return "Success";
	}

}
